package com.test;

import org.quartz.*;
import org.quartz.impl.StdSchedulerFactory;

public class HellomJobMain {

    public static void main(String[] args) throws Exception {
       /* //调度器
        Scheduler defaultScheduler = StdSchedulerFactory.getDefaultScheduler();
        //任务实例job
        JobDetail jobDetail = JobBuilder.newJob(HelloJob.class).withIdentity("job1", "group1")
                .usingJobData("job1","sdgsdd jobDetail1").build();
        //触发器实例
        Trigger trigger = TriggerBuilder.newTrigger().withIdentity("trigger1", "group1")
                .startNow().usingJobData("job1","trigger1").withSchedule(SimpleScheduleBuilder.repeatSecondlyForever(5)).build();
        defaultScheduler.scheduleJob(jobDetail,trigger);
        defaultScheduler.start();*/
    }
}
